package com.example.minesweepers;

import android.content.Context;
import android.graphics.Typeface;
import android.view.Gravity;
import android.widget.Button;
import android.widget.LinearLayout.LayoutParams;

public class GameFaceButton extends Button {
//	private Context context;
	private boolean isGameOver;

	public GameFaceButton(Context context) {
		super(context);
//		this.context = context;
		isGameOver = false;
	}

	public void setupButton(int drawableID, int screenWidth, int screenHeight) {
		setBackgroundResource(drawableID);
		setLayoutParams(new LayoutParams(screenWidth, screenHeight));
		setPadding(0, 0, 0, 0);
		setClickable(true);
		setTypeface(null, Typeface.BOLD_ITALIC);
		setText("");
		setGravity(Gravity.BOTTOM);
	}

	public boolean isGameOver() {
		return this.isGameOver;
	}
	
	public void changeGameState() {
		this.isGameOver = !this.isGameOver;
	}
	
	
}
